#!/user/bin/env python3
# -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By
from v6.page import Elements

from v6.base.base import BaseCalculator


class PageCalculate(BaseCalculator):
    pass

    # 点击数字2
    def page_click_simples(self, num):
        for n in num:
            clac_num = By.ID, f"simple{n}"
            self.base_click(clac_num)

    # 点击加号
    def page_click_simple_add(self):
        self.base_click(Elements.clac_add)

    # 点击等于号
    def page_click_simple_equal(self):
        self.base_click(Elements.clac_qul)

    # 查看结果
    def page_get_result_ipt(self,value):
        self.base_get_value(value)

    # 清屏
    def page_click_clear(self):
        self.base_click(Elements.clac_clear)

    # 截屏
    def page_get_img(self):
        return self.base_get_img()

    # 组装假发业务方法
    def page_add_calc(self):
        pass
